/** * crisp-client * @version v2.12.1 82e65c8 * @author Crisp IM SAS * @date 3/26/2024 */ (function(){try{var _={},t=new function(){var t,i,n,e,s,c,a;try{this.ns="CrispLibrary";var r={},h=_;function oi(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var e,s,c,a,r=[],o=!0,h=!1;try{if(c=(n=n.call(t)).next,0===i){if(Object(n)!==n)return;o=!1}else for(;!(o=(e=c.call(n)).done)&&(r.push(e.value),r.length!==i);o=!0);}catch(t){h=!0,s=t}finally{try{if(!o&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(h)throw s}}return r}}(t,i)||o(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hi(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||i&&t&&"number"==typeof t.length){function e(){}n&&(t=n);var s=0;return{s:e,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,r=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){r=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(r)throw c}}}}function o(t,i){if(t){if("string"==typeof t)return l(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,i):void 0}}function l(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,e=new Array(i);n/g,">").replace(/"/g,""");return i===""+t?t:i},o.rethrow=function i(n,t,e,s){if(!(n instanceof Error))throw n;if(!("undefined"==typeof window&&t||s))throw n.message+=" on line "+e,n;try{s=s||r("fs").readFileSync(t,"utf8")}catch(t){i(n,null,e)}var c=s.split("\n"),a=Math.max(e-3,0),s=Math.min(c.length,e+3),s=c.slice(a,s).map(function(t,i){i=i+a+1;return(i==e?" > ":" ")+i+"| "+t}).join("\n");throw n.path=t,n.message=(t||"Jade")+":"+e+"\n"+s+"\n\n"+n.message,n}},{fs:2}],2:[function(t,i,n){},{}]},{},[1])(1)},"object"==typeof __crisp_void_exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof __crisp_void_define&&define.amd?define([],s):(void 0!==r?c=r:"undefined"!=typeof global?c=global:"undefined"!=typeof self&&(c=self),c.jade=s());var u=Object.defineProperty,f=Object.defineProperties,d=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,m=function(t,i,n){return i in t?u(t,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[i]=n},ui=function(t,i){for(var n in i=i||{})p.call(i,n)&&m(t,n,i[n]);if(v){var e,s=hi(v(i));try{for(s.s();!(e=s.n()).done;)n=e.value,y.call(i,n)&&m(t,n,i[n])}catch(t){s.e(t)}finally{s.f()}}return t},fi=function(t,i){return f(t,d(i))};r.PetiteVue=function(t){function r(t){if(k(t)){for(var i={},n=0;n <= >= && || ! =".split(" ").forEach(function(t){It[t]=!0});var Ot={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};function St(t,i){this.lexer=t,this.options=i}function Dt(t){return t.type===St.Identifier||t.type===St.MemberExpression}function Rt(){}function Bt(t,i){this.ast=new St(t,i),this.astCompiler=new Rt}function Nt(t,i,n){try{return Lt(i)(t)}catch(t){console.error(t)}}function Mt(t,i){var n=t.nodeType;if(1===n){var e,s=t;if(!s.hasAttribute("v-pre")){if(Ft(s,"v-cloak"),e=Ft(s,"v-if"))return function(t,i,e){var s=t.parentElement,c=new Comment("v-if");s.insertBefore(c,t);for(var n,a,r=[{exp:i,el:t}];(n=t.nextElementSibling)&&(a=null,""===Ft(n,"v-else")||(a=Ft(n,"v-else-if")));)s.removeChild(n),r.push({exp:a,el:n});i=t.nextSibling;function o(){h&&(s.insertBefore(c,h.el),h.remove(),h=void 0)}s.removeChild(t);var h,l=-1;return e.effect(function(){for(var t=0;t","<=",">=");)i={type:St.BinaryExpression,operator:t.text,left:i,right:this.additive()};return i},additive:function(){for(var t,i=this.multiplicative();t=this.expect("+","-");)i={type:St.BinaryExpression,operator:t.text,left:i,right:this.multiplicative()};return i},multiplicative:function(){for(var t,i=this.unary();t=this.expect("*","/","%");)i={type:St.BinaryExpression,operator:t.text,left:i,right:this.unary()};return i},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:St.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,i;for(this.expect("(")?(t=this.expression(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=Object.assign({},this.selfReferential[this.consume().text]):At.hasOwnProperty(this.peek().text)?t={type:St.Literal,value:At[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());i=this.expect("(","[",".");)"("===i.text?(t={type:St.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===i.text?(t={type:St.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===i.text?t={type:St.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)for(;t.push(this.expression()),this.expect(","););return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:St.Identifier,name:t.text}},constant:function(){return{type:St.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)for(;!this.peek("]")&&(t.push(this.expression()),this.expect(",")););return this.consume("]"),{type:St.ArrayExpression,elements:t}},object:function(){var t,i=[];if("}"!==this.peekToken().text)for(;!this.peek("}")&&(t={type:St.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),i.push(t),this.expect(",")););return this.consume("}"),{type:St.ObjectExpression,properties:i}},throwError:function(t,i){throw mt("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",i.text,t,i.index+1,this.text,this.text.substring(i.index))},consume:function(t){if(0===this.tokens.length)throw mt("ueoe","Unexpected end of expression: {0}",this.text);var i=this.expect(t);return i||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),i},peekToken:function(){if(0===this.tokens.length)throw mt("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,i,n,e){return this.peekAhead(0,t,i,n,e)},peekAhead:function(t,i,n,e,s){if(this.tokens.length>t){var c=this.tokens[t],t=c.text;if(t===i||t===n||t===e||t===s||!i&&!n&&!e&&!s)return c}return!1},expect:function(t,i,n,e){e=this.peek(t,i,n,e);return!!e&&(this.tokens.shift(),e)},selfReferential:{this:{type:St.ThisExpression},$locals:{type:St.LocalsExpression}}},Rt.prototype={compile:function(i){var e,s=this;(function i(t,n){var e,s,c=t.isPure=function(t,i){switch(t.type){case St.MemberExpression:if(t.computed)return!1;break;case St.UnaryExpression:return 1;case St.BinaryExpression:return"+"!==t.operator&&1;case St.CallExpression:return!1}return void 0===i?2:i}(t,n);switch(t.type){case St.Program:e=!0,t.body.forEach(function(t){i(t.expression,c),e=e&&t.expression.constant}),t.constant=e;break;case St.Literal:t.constant=!0,t.toWatch=[];break;case St.UnaryExpression:i(t.argument,c),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case St.BinaryExpression:i(t.left,c),i(t.right,c),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case St.LogicalExpression:i(t.left,c),i(t.right,c),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case St.ConditionalExpression:i(t.test,c),i(t.alternate,c),i(t.consequent,c),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case St.Identifier:t.constant=!1,t.toWatch=[t];break;case St.MemberExpression:i(t.object,c),t.computed&&i(t.property,c),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=t.constant?[]:[t];break;case St.CallExpression:e=!1,s=[],t.arguments.forEach(function(t){i(t,c),e=e&&t.constant,s.push.apply(s,t.toWatch)}),t.constant=e,t.toWatch=[t];break;case St.AssignmentExpression:i(t.left,c),i(t.right,c),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case St.ArrayExpression:e=!0,s=[],t.elements.forEach(function(t){i(t,c),e=e&&t.constant,s.push.apply(s,t.toWatch)}),t.constant=e,t.toWatch=s;break;case St.ObjectExpression:e=!0,s=[],t.properties.forEach(function(t){i(t.value,c),e=e&&t.value.constant,s.push.apply(s,t.value.toWatch),t.computed&&(i(t.key,!1),e=e&&t.key.constant,s.push.apply(s,t.key.toWatch))}),t.constant=e,t.toWatch=s;break;case St.ThisExpression:case St.LocalsExpression:t.constant=!1,t.toWatch=[]}})(i),(t=function(t){if(1===i.body.length&&Dt(i.body[0].expression))return{type:St.AssignmentExpression,left:i.body[0].expression,right:{type:St.NGValueParameter},operator:"="}}())&&(e=this.recurse(t));var c,t=function(t){if(1===t.length){var i=t[0].expression,t=i.toWatch;return 1!==t.length||t[0]!==i?t:void 0}}(i.body);t&&(c=[],t.forEach(function(t,i){var n=s.recurse(t);n.isPure=t.isPure,t.input=n,c.push(n),t.watchId=i}));var a=[];i.body.forEach(function(t){a.push(s.recurse(t.expression))});t=0===i.body.length?noop:1===i.body.length?a[0]:function(i,n){var e;return a.forEach(function(t){e=t(i,n)}),e};return e&&(t.assign=function(t,i,n){return e(t,n,i)}),c&&(t.inputs=c),t},recurse:function(t,o,i){var c,h,l,n=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case St.Literal:return this.value(t.value,o);case St.UnaryExpression:return h=this.recurse(t.argument),this["unary"+t.operator](h,o);case St.BinaryExpression:case St.LogicalExpression:return c=this.recurse(t.left),h=this.recurse(t.right),this["binary"+t.operator](c,h,o);case St.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),o);case St.Identifier:return n.identifier(t.name,o,i);case St.MemberExpression:return c=this.recurse(t.object,!1,!!i),t.computed||(h=t.property.name),t.computed&&(h=this.recurse(t.property)),t.computed?this.computedMember(c,h,o,i):this.nonComputedMember(c,h,o,i);case St.CallExpression:return l=[],t.arguments.forEach(function(t){l.push(n.recurse(t))}),h=this.recurse(t.callee,!0),function(t,i,n,e){var s,c=h(t,i,n,e);if(null!=c.value){for(var a=[],r=0;r":function(s,c,a){return function(t,i,n,e){e=s(t,i,n,e)>c(t,i,n,e);return a?{value:e}:e}},"binary<=":function(s,c,a){return function(t,i,n,e){e=s(t,i,n,e)<=c(t,i,n,e);return a?{value:e}:e}},"binary>=":function(s,c,a){return function(t,i,n,e){e=s(t,i,n,e)>=c(t,i,n,e);return a?{value:e}:e}},"binary&&":function(s,c,a){return function(t,i,n,e){e=s(t,i,n,e)&&c(t,i,n,e);return a?{value:e}:e}},"binary||":function(s,c,a){return function(t,i,n,e){e=s(t,i,n,e)||c(t,i,n,e);return a?{value:e}:e}},"ternary?:":function(s,c,a,r){return function(t,i,n,e){e=(s(t,i,n,e)?c:a)(t,i,n,e);return r?{value:e}:e}},value:function(t,i){return function(){return i?{context:void 0,name:void 0,value:t}:t}},identifier:function(s,c,a){return function(t,i,n,e){i=i&&s in i?i:t;a&&1!==a&&i&&null==i[s]&&(i[s]={});t=i?i[s]:void 0;return c?{context:i,name:s,value:t}:t}},computedMember:function(r,o,h,l){return function(t,i,n,e){var s,c,a=r(t,i,n,e);return null!=a&&(s=o(t,i,n,e),s+="",l&&1!==l&&a&&!a[s]&&(a[s]={}),c=a[s]),h?{context:a,name:s,value:c}:c}},nonComputedMember:function(s,c,a,r){return function(t,i,n,e){n=s(t,i,n,e);r&&1!==r&&n&&null==n[c]&&(n[c]={});e=null!=n?n[c]:void 0;return a?{context:n,name:c,value:e}:e}},inputs:function(s,c){return function(t,i,n,e){return e?e[c]:s(t,i,n)}}};var Lt=new function(){var e={};return function(t,i){var n;return t=t.trim(),(n=e[t])?n:new Bt(new qt).parse(t)}},Jt=function(t,i,n){return Nt(t,i)},Vt={bind:ot,on:ut,show:function(t){var i=t.el,n=t.get,t=t.effect,e=i.style.display;t(function(){i.style.display=n()?e:"none"})},text:Ct,html:function(t){var i=t.el,n=t.get;(0,t.effect)(function(){i.innerHTML=n()})},model:function(t){function c(t){t=(t=t.replace(l,"\\\\")).replace(u,'\\"');o("".concat(e,' = "').concat(t,'"'))}var a,i,n,r=t.el,e=t.exp,o=t.get,s=t.effect,h=t.modifiers,l=/\\/g,u=/"/g,f=r.type,t=h||{},d=t.trim,t=t.number,v=void 0===t?"number"===f:t;"SELECT"===r.tagName?(lt(a=r,"change",function(){var t=Array.prototype.filter.call(a.options,function(t){return t.selected}).map(function(t){return v?m(dt(t)):dt(t)});c(a.multiple?t:t[0])}),s(function(){for(var t=o(),i=a.multiple,n=0,e=a.options.length;n":/>/g,'"':/"/g},this.b={"&":/&/g,"<"://g,""":/"/g},this.k={"\\\\":/\\/g,"\\t":/\t/g,"\\n":/\n/g,"\\u00A0":/\u00A0/g,""":/"/g,"'":/'/g,"_":/_/g,"*":/\*/g,"+":/\+/g,"~":/~/g},this.$={"<":/</g,">":/>/g},this.F=/[-\/\\^$*+?.()|[\]{}]/g,this.j=/([\#$\*\_\-+![\]\(\)`~><\.|{}])/g,this.z=/\n(\s+)?\n(\s+)?\n/g,this.C=/\n/g,this.A=/^([a-z]{1,20})\n((?:\n?.*)*)$/,this.I=/(,|\.)(\s|$)/g,this.q=/\u0001/g,this.O=/^(www\.)/i,this.S={links:{prefix:"(\\s|<[^<>]+\\/>|<[^a][^<>]*>|\\(|^)",suffix:"(\\s||<[^<>]+\\/>|]*>|\\)|$)"},markdown_simple:{prefix:"(^)",suffix:"($)"},markdown_includes:{prefix:"(\\s|<[^<>]+\\/>|<[^<>]+>|\\(|^)",suffix:"(\\s|.|,|:|<[^<>]+\\/>|\\)|$)"},markdown_formatting:{prefix:"(\\s|<[^<>]+\\/>|\\(|^)",suffix:""},markdown_list:{prefix:"(^\\s*)",suffix:"(.*?)($)"}},this.D=["title","list","code_inline","blockquote","table","emphasis"],this.R=["code_block","code_inline"],this.B=["escape","consecutive_lines","markdown","links_uri","links_domain","emails","phones","smileys","new_lines"],this.N={escape:this.M,consecutive_lines:this.T,new_lines:this.U,emails:this.P,phones:this.L,markdown:this.J,links_domain:this.V,links_uri:this.W,smileys:this.H},this.K={markdown_code_block:this.G,markdown_table:this.Y},this.Z(),this.X()}var i=t.prototype;return i.format=function(t){for(var i,n=1\\(\\)\\s,@]+)(?:\\.(?:",this.g.map(this.escape_regex.bind(this)).join("|"),")))"].join(""),"gim",this.S.links),uri:this.st("((?:(?:(?:https?|ftps?|file):)|(?:www\\.))(?:[^<>\\(\\)\\s]+))","gim",this.S.links)}},i.X=function(){this.it=[["code_block",this.st("(`{2,3})((?:\\n+)?(?:(?!\\2).(?:\\n+)?)*)(?:\\2)","gi",{prefix:"(\\s|<[^<>]+\\/>|^)",suffix:"(\\s|\\.|,|:|$)"})],["code_inline",this.st("(`{1})([^`]*)(?:\\2)","gim",{prefix:"(\\s|<[^<>]+\\/>|\\(|^)",suffix:"(\\s|\\.|,|:|\\)|<\\/[^<>]+>|$)"})],["title",this.st("(#{1})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["title",this.st("(#{2})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["title",this.st("(#{3})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["title",this.st("(#{4})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["title",this.st("(#{5})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["title",this.st("(#{6})(?:[\\s]+)([^#].*)","gim",this.S.markdown_simple)],["link_image",this.st("\\[!\\[(?:[^\\[]*)\\]\\(([^\\)]+)\\)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["image",this.st("!\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["link_text",this.st("\\[([^\\[]+)\\]\\(([^\\)]+)\\)","gim",{prefix:"(\\s|<[^<>]+\\/>|<[^a][^<>]*>|\\(|^)",suffix:"(\\s|.|,|:|<[^<>]+\\/>|]*>|\\)|$)"})],["youtube",this.st("\\$\\{youtube\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["vimeo",this.st("\\$\\{vimeo\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["dailymotion",this.st("\\$\\{dailymotion\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["frame",this.st("\\$\\{frame\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)],["bold",this.st("(\\*\\*)(.*?)(?:\\2)","gim",this.S.markdown_formatting)],["underline",this.st("(__)(.*?)(?:\\2)","gim",this.S.markdown_formatting)],["italic",this.st("(\\*|_)(.*?)(?:\\2)","gim",this.S.markdown_formatting)],["delete",this.st("(\\~\\~)(.*?)(?:\\2)","gim",this.S.markdown_formatting)],["highlight",this.st("(\\+\\+)(.*?)(?:\\2)","gim",this.S.markdown_formatting)],["list",this.st("(\\*)(?:[\\s]+)","gim",this.S.markdown_list)],["list",this.st("(?:([\\d]{1,2})\\.)(?:[\\s]+)","gim",this.S.markdown_list)],["blockquote",this.st("(>|\\>)(?:[\\s]+)(.*)","gim",this.S.markdown_simple)],["table",this.st("(?:(\\|(?:[^\\|\\r\\n]{0,999}\\|){1,19})(?: *\\n)(?:\\|(?: *\\-{1,99} *\\|){1,19}))((?: *\\n\\|(?:[^\\|\\r\\n]{0,999}\\|){1,19}){1,49})","gi",{prefix:"(\\s|^)",suffix:"(\\s|$)"})],["emphasis",this.st("(\\|{1})(?:[\\s]+)([^\\|].*)","gim",this.S.markdown_simple)],["emphasis",this.st("(\\|{2})(?:[\\s]+)([^\\|].*)","gim",this.S.markdown_simple)],["emphasis",this.st("(\\|{3})(?:[\\s]+)([^\\|].*)","gim",this.S.markdown_simple)],["interpolate",this.st('(?:\\{\\{\\s*)([^\\{\\}\\|\\s]+)(?:\\s*\\|\\s*(?:(?:")|")([^&"]*)(?:(?:")|"))?(?:\\s*\\}\\})',"gim",{prefix:"(\\s|\\(|^)",suffix:""})],["line",this.st("(-{3,})","gim",{prefix:"(^)(\\s+)?",suffix:"(\\s|$)"})],["color",this.st("\\$\\{color\\}\\[(#[0-9A-Fa-f]{6})\\]\\(([^\\)]+)\\)","gim",this.S.markdown_includes)]]},t}(),e=function(){function t(t){this.parent=t,this.ct=/^(\S+)((?:\s+)(.+))?$/}var i=t.prototype;return i.parse_first_name=function(t){return this.rt(t,1)},i.parse_last_name=function(t){return this.rt(t,3)},i.rt=function(t,i){var n=(t||"").trim();return!n||null!=(t=n.match(this.ct))&&t[i]&&(n=t[i].trim()),n},t}();this.ot(t),this.Smileys=new i(this),this.Parse=new n(this),this.Name=new e(this)},i.ot=function(t){null!=t&&t.template&&(this.template=t.template),null!=t&&t.config&&(this.config=t.config)},t}(),n.CrispLibraryWeb=new e,t=r,i=function(){function t(){}var i=t.prototype;return i.init=function(t){var r={},i=function(){function t(t){this.parent=t,this.ht()}var i=t.prototype;return i.set_ignore_privacy=function(){this.lt=0=this.Ut)&&(this.Yt=(new Date).getTime(),this.Gt.local={type:t},n&&(this.Gt.local.excerpt=n),1==e&&null!==this.Zt&&(this.parent.Schedule.clear_timeout(this.Zt),this.Zt=null),null===this.Zt&&(this.Zt=this.parent.Schedule.set_timeout(function(){i.Zt=null,i.parent.socket.emit("message:compose:send",i.Gt.local),i.parent.event.publish("message:compose:send",i.Gt.local)},1==e?0:this.Pt)))},i.send_message_thread=function(t){var i=1i.timestamp?1:0})},i.Ht=function(){var t=""+(new Date).getTime()+Math.ceil(100*Math.random());return t.length<15&&(t+=new Array(15-t.length+1).join("0")),parseInt(t,10)},i.ii=function(t,i){t.is_me?this.yi(t,i):this.mi(t,i)},i.ai=function(){var t=0=this.Si&&this.hn(!0),this.an=t},i.acquire_saved=function(){var t=this.ln(),i=null,n=(location.search||"").match(this.qi),e=(document.referrer||"").match(this.Ii);n&&n[2]&&n[2]!==t.current&&(i=n[2]||null);e=(i=e&&e[1]===this.parent.url_go&&e[3]!==t.current?e[3]||null:i)||t.current,i=null;return{session_id:e,merge:i=t.previous&&t.current!==t.previous&&t.current===e?t.previous:i}},i.restore=function(){var t=this.acquire_saved();this.un(t.session_id,t.merge)},i.join=function(){var t,i={website_id:this.parent.website_id,session_id:this.Wt,expire:this.Ui,storage:!0,sync:0=this.Ri){this.bn=i;var n=document.title||"";if(n.length>this.Ni&&(n=n.substring(0,this.Ni-this.Mi.length),n+=this.Mi),!0===this.Oi.test(t)&&("?"!==(i=(t=t.replace(this.Oi,"$1$3"))[t.length-1])&&"&"!==i||(t=t.substr(0,t.length-1))),(t=t.length>this.Bi?t.split("?")[0]||"":t)&&n&&t.length<=this.Bi){t={page_url:t,page_title:n},n=(document.referrer||"").split("?")[0]||"";return n&&n.length<=this.Bi&&(t.page_referrer=n),t}}}return null},i.Ki=function(){var t=0t.length)&&(i=t.length);for(var n=0,e=new Array(i);n>4,o[r++]=(15&n)<<4|e>>2,o[r++]=(3&e)<<6|63&s;return c}(n),i):{base64:!0,data:n})}:_[e]?1this.maxPayload)return this.writeBuffer.slice(0,i);t+=2}return this.writeBuffer}},{key:"write",value:function(t,i,n){return this.sendPacket("message",t,i,n),this}},{key:"send",value:function(t,i,n){return this.sendPacket("message",t,i,n),this}},{key:"sendPacket",value:function(t,i,n,e){"function"==typeof i&&(e=i,i=void 0),"function"==typeof n&&(e=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState&&((n=n||{}).compress=!1!==n.compress,this.emitReserved("packetCreate",n={type:t,data:i,options:n}),this.writeBuffer.push(n),e&&this.once("flush",e),this.flush())}},{key:"close",value:function(){function t(){n.off("upgrade",t),n.off("upgradeError",t),e()}function i(){n.once("upgrade",t),n.once("upgradeError",t)}var n=this,e=function(){n.onClose("forced close"),n.transport.close()};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",function(){(n.upgrading?i:e)()}):(this.upgrading?i:e)()),this}},{key:"onError",value:function(t){u.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}},{key:"onClose",value:function(t,i){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,i),this.writeBuffer=[],this.prevBufferLen=0)}},{key:"filterUpgrades",value:function(t){for(var i=[],n=0,e=t.length;n=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,r=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){r=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(r)throw c}}}}(this._anyListeners.slice());try{for(n.s();!(i=n.n()).done;)i.value.apply(this,t)}catch(t){n.e(t)}finally{n.f()}}v(h(e.prototype),"emit",this).apply(this,t)}},{key:"ack",value:function(e){var s=this,c=!1;return function(){if(!c){c=!0;for(var t=arguments.length,i=new Array(t),n=0;n=this._reconnectionAttempts?(this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1):(t=this.backoff.duration(),this._reconnecting=!0,n=this.setTimeoutFn(function(){e.skipReconnect||(i.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(e._reconnecting=!1,e.reconnect(),i.emitReserved("reconnect_error",t)):e.onreconnect()}))},t),this.opts.autoUnref&&n.unref(),this.subs.push(function(){clearTimeout(n)}))}},{key:"onreconnect",value:function(){var t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}]),i}(),ht={};function lt(t,i){"object"===o(t)&&(i=t,t=void 0);var n=function(t){var i=1t+n.te&&!0===n.ve&&n.Xe()},n.Qn)})},i.oe=function(){var i=this;this.parent.Listener.add_event("browsing","window","scroll",function(){var t;!0!==i.ge&&(t=document.documentElement,i.qe.last_x=(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),i.qe.last_y=(window.pageYOffset||t.scrollTop)-(t.clientTop||0))})},i.he=function(){var i=this;this.parent.Listener.add_event("browsing","window","click",function(t){!0!==i.ve||t.ss||i.cs("click",function(){i.es(),i.Ze()})})},i.ye=function(){return null===this.rn||null!==this.rn&&(new Date).getTime()-this.rn>=this.Zn},i.hn=function(){var t=this,i=!(0=i.ne);t++)i.ts(i.Ae[t]);i.Ae.splice(0,i.ne)},this.ie))},i.cs=function(t,i){var n=this;void 0===this.mn[t]&&(this.mn[t]=this.parent.Schedule.set_timeout(function(){delete n.mn[t],i()},this.Li))},t}(),g=function(){function t(t){this.parent=t,this.Yn=1e4,this.as=5e3,this.rs=200,this.se=["call:request:initiate","call:request:accepted","call:request:declined","call:action:stopped","call:signaling:sdp","call:signaling:candidate"],this.ht(),this.gt()}var i=t.prototype;return i.init=function(t,i,n){var e=this;this.parent.Stream.bind_to(null,this.se,{session_id:this.parent.Session.Wt},function(){e.os=t.mode||null,e.hs=t.ice||[],!0===t.has_support?(e.parent.stream.emit("client:call:request:initiated",{call_id:t.call_id}),e.hn(!0)):e.parent.stream.emit("client:call:request:decline",{}),"function"==typeof i&&i()},function(){"function"==typeof n&&n()})},i.accept=function(){!0===this.fe&&(this.ls=!0,this.parent.stream.emit("client:call:request:accept",{}))},i.decline=function(){!0===this.fe&&(this.parent.stream.emit("client:call:request:decline",{}),this.le())},i.stop=function(){!0===this.fe&&(this.parent.stream.emit("client:call:action:stopped",{}),this.le())},i.toggle_audio=function(){return this.us("audio","getAudioTracks")},i.toggle_video=function(){return this.us("video","getVideoTracks")},i.toggle_screensharing=function(){return!0===this.fe&&null!==this.ds.local&&(!1===this.vs?this.ps():this.ys()),this.vs},i.is_ongoing=function(){return!0===this.fe&&null!==this.gs&&!0},i.has_support_screensharing=function(){return!(!navigator.mediaDevices||"function"!=typeof navigator.mediaDevices.getDisplayMedia)},i.get_stream=function(t){return this.ds[t]||null},i.reset=function(){!0===this.fe&&this.le(),this.ht()},i.ht=function(){this.fe=!1,this.vs=!1,this.ls=!1,this._s=!1,this.gs=null,this.be=null,this.bs=null,this.os=null,this.hs=[],this.ds={local:null,remote:null},this.ks={video:null}},i.gt=function(){this.parent.socket.on("call:request:initiate",this.me.Mt(this)),this.parent.stream.on("client:call:request:accepted",this.xs.Mt(this)),this.parent.stream.on("client:call:request:declined",this.Fs.Mt(this)),this.parent.stream.on("client:call:action:stopped",this.js.Mt(this)),this.parent.stream.on("client:call:signaling:sdp",this.Es.Mt(this)),this.parent.stream.on("client:call:signaling:candidate",this.zs.Mt(this))},i.me=function(t){!0!==this.fe&&(t.has_support=-1!==(this.parent.device.capabilities||[]).indexOf("call"),this.fe=!0,this.parent.event.publish("call:request:initiate",t))},i.xs=function(){!0===this.fe&&!0!==this.ls&&this.le()},i.Fs=function(){!0===this.fe&&this.le()},i.js=function(){!0===this.fe&&this.le()},i.Es=function(t){var i=this;!0===this.fe&&(this.Cs(),"operator"===t.from&&this.gs.setRemoteDescription(new RTCSessionDescription(t.sdp)).then(function(){return i.parent.event.publish("call:peer:remote:success",{}),null===i.ds.local?i.As():"offer"===t.sdp.type?i.Is("answer"):Promise.resolve()}).catch(function(){i.parent.event.publish("call:peer:remote:error",{})}))},i.zs=function(t){!0===this.fe&&(this.Cs(),"operator"===t.from&&"object"==typeof t.candidate&&null!==t.candidate&&this.gs.addIceCandidate(new RTCIceCandidate({sdpMLineIndex:t.candidate.sdpMLineIndex,candidate:t.candidate.candidate})).catch(function(){}))},i.Cs=function(){var i=this;null===this.gs&&(this.gs=new RTCPeerConnection({iceServers:this.hs}),this.gs.onicecandidate=function(t){t&&t.candidate&&i.parent.stream.emit("client:call:signaling:candidate",{from:"user",candidate:t.candidate})},this.gs.ontrack=function(t){t=t.streams[0];i.ds.remote=t,i.parent.event.publish("call:media:remote:success",{}),t.onremovetrack=function(){i.parent.event.publish("call:media:remote:success",{})}},this.gs.oniceconnectionstatechange=function(){var t=i.gs;null!==t&&"failed"!==t.iceConnectionState&&"closed"!==t.iceConnectionState||i.qs(),null!==t&&"disconnected"===t.iceConnectionState&&(i.bs=i.parent.Schedule.set_timeout(function(){(i.bs=null)!==i.gs&&"connected"===t.iceConnectionState||i.qs()},i.as)),null!==t&&"connected"===t.iceConnectionState&&!0!==i._s&&i.parent.Schedule.set_timeout(function(){i.As(!0)},i.rs)},this.gs.onnegotiationneeded=function(){i.Is("offer")},this.gs.onclose=function(){i.qs()})},i.As=function(){function i(){n.parent.event.publish("call:peer:local:error",{})}var n=this,e=0>6:(e<55296||57344<=e?s[a++]=224|e>>12:(e=65536+((1023&e)<<10|1023&t.charCodeAt(++r)),s[a++]=240|e>>18,s[a++]=128|e>>12&63),s[a++]=128|e>>6&63),s[a++]=128|63&e);t=s}else{if("object"!=n)throw new Error(u);if(null===t)throw new Error(u);if(f&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||f&&ArrayBuffer.isView(t)))throw new Error(u)}64>2]|=t[c]<>2]|=e<>2]|=(192|e>>6)<>2]|=(224|e>>12)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<>2]|=n[3&i],this.block=t[16],56<=i&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash())},d.prototype.hash=function(){for(var t,i,n,e,s,c,a=this.h0,r=this.h1,o=this.h2,h=this.h3,l=this.h4,u=this.h5,f=this.h6,d=this.h7,v=this.blocks,p=16;p<64;++p)t=((i=v[p-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,i=v[p-2],v[p]=v[p-16]+t+v[p-7]+((i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)<<0;for(c=r&o,p=0;p<64;p+=4)this.first?(d=(i=v[0]-210244248)-1521486534<<0,h=i+143694565<<0,this.first=!(n=704751109)):(d=h+(i=d+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&u^~l&f)+y[p]+v[p])<<0,h=i+((t=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((n=a&r)^a&o^c))<<0),f=o+(i=f+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&l^~d&u)+y[p+1]+v[p+1])<<0,o=i+((t=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((e=h&a)^h&r^n))<<0,u=r+(i=u+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&d^~f&l)+y[p+2]+v[p+2])<<0,r=i+((t=(o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((s=o&h)^o&a^e))<<0,l=a+(i=l+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&f^~u&d)+y[p+3]+v[p+3])<<0,a=i+((t=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+((c=r&o)^r&h^s))<<0;this.h0=this.h0+a<<0,this.h1=this.h1+r<<0,this.h2=this.h2+o<<0,this.h3=this.h3+h<<0,this.h4=this.h4+l<<0,this.h5=this.h5+u<<0,this.h6=this.h6+f<<0,this.h7=this.h7+d<<0},d.prototype.toString=d.prototype.hex=function(){this.finalize();var t=this.h0,i=this.h1,n=this.h2,e=this.h3,s=this.h4,c=this.h5,a=this.h6,r=this.h7;return o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[s>>28&15]+o[s>>24&15]+o[s>>20&15]+o[s>>16&15]+o[s>>12&15]+o[s>>8&15]+o[s>>4&15]+o[15&s]+o[c>>28&15]+o[c>>24&15]+o[c>>20&15]+o[c>>16&15]+o[c>>12&15]+o[c>>8&15]+o[c>>4&15]+o[15&c]+o[a>>28&15]+o[a>>24&15]+o[a>>20&15]+o[a>>16&15]+o[a>>12&15]+o[a>>8&15]+o[a>>4&15]+o[15&a]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},d.prototype.digest=function(){this.finalize();var t=this.h0,i=this.h1,n=this.h2,e=this.h3,s=this.h4,c=this.h5,a=this.h6,r=this.h7;return[t>>24&255,t>>16&255,t>>8&255,255&t,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,e>>24&255,e>>16&255,e>>8&255,255&e,s>>24&255,s>>16&255,s>>8&255,255&s,c>>24&255,c>>16&255,c>>8&255,255&c,a>>24&255,a>>16&255,a>>8&255,255&a,r>>24&255,r>>16&255,r>>8&255,255&r]},(e.prototype=new d).finalize=function(){var t;d.prototype.finalize.call(this),this.inner&&(this.inner=!1,t=this.digest(),d.call(this,this.memory),this.update(this.oKeyPad),this.update(t),d.prototype.finalize.call(this))};var s=(c.create=function(){return new d},c.update=function(t){return c.create().update(t)},c);function c(t){return new d(!0).update(t).hex()}function a(t,i){return new e(t,!0).update(i).hex()}(s.sha256=s).sha256.hmac=(a.create=function(t){return new e(t)},a.update=function(t,i){return a.create(t).update(i)},a),t.sha256=s.sha256}(),this.Ls=/^((?:https?|wss?):\/\/[^\/]+)(\/.*)?$/,this.Js(),this.ot(t),this.Vs(t,r),this.Config=new i(this),this.Register=new n(this),this.Schedule=new e(this),this.Listener=new s(this),this.Socket=new c(this),this.Stream=new a(this),this.Storage=new o(this),this.Browsing=new m(this),this.Call=new g(this),this.Message=new h(this),this.Session=new l(this),this.Website=new u(this),this.Bucket=new f(this),this.Media=new d(this),this.Helpdesk=new y(this),this.Trigger=new _(this),this.Issue=new w(this),this.pt(),!0===t.connect_socket&&this.socket.connect()},i.Js=function(){this.ht()},i.ht=function(){delete this.environment,delete this.disable_autoload,delete this.url_go,delete this.website_domain,delete this.website_id,delete this.token_id,delete this.cookie_expire,delete this.cookie_domain,delete this.platform_name,delete this.platform_signature_key,delete this.runtime_configuration,delete this.device,this.Ws=!1,this.Hs=!1},i.ot=function(t){t&&t.environment&&(this.environment=t.environment||"development"),t&&t.disable_autoload&&(this.disable_autoload=t.disable_autoload),t&&t.url_go&&(this.url_go=t.url_go),t&&t.website_domain&&(this.website_domain=t.website_domain),t&&t.website_id&&(this.website_id=t.website_id),t&&t.token_id&&(this.token_id=t.token_id),t&&t.cookie_expire&&(this.cookie_expire=t.cookie_expire),t&&t.cookie_domain&&(this.cookie_domain=t.cookie_domain),t&&t.platform_name&&(this.platform_name=t.platform_name),t&&t.platform_signature_key&&(this.platform_signature_key=t.platform_signature_key),t&&t.runtime_configuration&&(this.runtime_configuration=t.runtime_configuration),this.device={},t&&t.useragent&&(this.device.useragent=t.useragent),t&&t.timezone&&(this.device.timezone=t.timezone),t&&t.capabilities&&(this.device.capabilities=t.capabilities),t&&t.locales&&(this.device.locales=t.locales)},i.Vs=function(t,i){var n=["websocket"],e=(t.url_relay_client||"").match(this.Ls)||[],t=(t.url_relay_stream||"").match(this.Ls)||[];this.event=i.PubSub,this.socket=i.io(e[1]||null,{path:e[2]||"/",transports:n,autoConnect:!1,timeout:25e3,reconnectionDelay:15e3,reconnectionDelayMax:6e4,reconnectionAttempts:5,randomizationFactor:.5}),this.stream=i.io(t[1]||null,{path:t[2]||"/",transports:n,reconnection:!1,autoConnect:!1}),this.cookie=i.Cookies(window),this.sha256=i.sha256},i.pt=function(){var t=this;this.Listener.add_event("index","window","pagehide",function(){t.Ws=t.socket.connected||!1,t.Hs=t.stream.connected||!1,!0===t.socket.connected&&t.socket.disconnect(),!0===t.stream.connected&&t.stream.disconnect()}),this.Listener.add_event("index","window","pageshow",function(){!0===t.Ws&&(t.Ws=!1,t.socket.connect()),!0===t.Hs&&(t.Hs=!1,t.stream.connect())}),this.Listener.add_event("index","window","popstate",function(){t.Ks()}),"object"==typeof window.history&&(this.Listener.apply_patch("index","window.history","pushState",window.history,function(){t.Ks()}),this.Listener.apply_patch("index","window.history","replaceState",window.history,function(){t.Ks()}))},i.Ks=function(){this.Session.send_device(),this.event.publish("window:history",{page_url:document.location.href,page_domain:document.location.hostname})},t}(),t.CrispLibraryClient=new i;var g={client:function(t){var n=[],t=t||{};return function(t,i){n.push('
')}.call(this,"direction"in t?t.direction:"undefined"!=typeof direction?direction:void 0,"lang"in t?t.lang:"undefined"!=typeof lang?lang:void 0),n.join("")},viewport:function(t){var i=[],t=t||{};return function(t){i.push('")}.call(this,"content"in t?t.content:"undefined"!=typeof content?content:void 0),i.join("")},clear:function(t){var i=[];return i.push(''),i.join("")},style_color:function(t){var i,n=[],t=t||{};return function(t){n.push('
")}.call(this,"colors"in t?t.colors:"undefined"!=typeof colors?colors:void 0),n.join("")},style_other:function(t){var i,n=[],t=t||{};return function(t){n.push('
")}.call(this,"container_index"in t?t.container_index:"undefined"!=typeof container_index?container_index:void 0),n.join("")},style_position:function(t){var i,n=[],t=t||{};return function(t){n.push('
'),t.default_button_horizontal&&n.push('"),t.default_button_vertical&&n.push('"),t.mobile_button_horizontal&&n.push('"),t.mobile_button_vertical&&n.push('"),n.push("
")}.call(this,"position"in t?t.position:"undefined"!=typeof position?position:void 0),n.join("")},new_line:function(t){var i=[];return i.push('
'),i.join("")},link_phone:function(t){var i,n=[],t=t||{};return function(t){n.push("'+(null==(i=t)?"":i)+"")}.call(this,"phone"in t?t.phone:"undefined"!=typeof phone?phone:void 0),n.join("")},link_email:function(t){var i,n=[],t=t||{};return function(t){n.push("'+(null==(i=t)?"":i)+"")}.call(this,"email"in t?t.email:"undefined"!=typeof email?email:void 0),n.join("")},link_uri:function(t){var n,e=[],t=t||{};return function(t,i){e.push("'+(null==(n=t)?"":n)+"")}.call(this,"uri_name"in t?t.uri_name:"undefined"!=typeof uri_name?uri_name:void 0,"uri_value"in t?t.uri_value:"undefined"!=typeof uri_value?uri_value:void 0),e.join("")},link_domain:function(t){var n,e=[],t=t||{};return function(t,i){e.push("'+(null==(n=t)?"":n)+"")}.call(this,"domain_name"in t?t.domain_name:"undefined"!=typeof domain_name?domain_name:void 0,"domain_value"in t?t.domain_value:"undefined"!=typeof domain_value?domain_value:void 0),e.join("")},markdown_blockquote:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_table:function(t){var c,a=[],t=t||{};return function(s,t,e){a.push(''),0'),function(){var t=s;if("number"==typeof t.length)for(var i=0,n=t.length;i"+(null==(c=e)?"":c)+"")}else for(i in n=0,t)n++,e=t[i],a.push("")}.call(this),a.push("")),a.push(""),function(){var t=e;if("number"==typeof t.length)for(var i=0,n=t.length;i"),function(){var t=s;if("number"==typeof t.length)for(var i=0,n=t.length;i"+(null==(c=e)?"":c)+"")}else for(i in n=0,t)n++,e=t[i],a.push("")}.call(this),a.push("")}else for(i in n=0,t)n++,s=t[i],a.push(""),function(){var t=s;if("number"==typeof t.length)for(var i=0,n=t.length;i"+(null==(c=e)?"":c)+"")}else for(i in n=0,t)n++,e=t[i],a.push("")}.call(this),a.push("")}.call(this),a.push("
"+(null==(c=e)?"":c)+"
"+(null==(c=e)?"":c)+"
"+(null==(c=e)?"":c)+"
")}.call(this,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"undefined"in t?t.undefined:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),a.join("")},markdown_color:function(t){var n,e=[],t=t||{};return function(t,i){e.push("'+(null==(n=i)?"":n)+"")}.call(this,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},markdown_bold:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_code_inline:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_code_block:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_delete:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_highlight:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_emphasis:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_image:function(t){var s=[],t=t||{};return function(t,i,n,e){s.push("");e=t(e);s.push('")}.call(this,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"url_crisp_image"in t?t.url_crisp_image:"undefined"!=typeof url_crisp_image?url_crisp_image:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),s.join("")},markdown_interpolate:function(t){var n,e=[],t=t||{};return function(t,i){e.push('{{ '+h.Library.jade.runtime.escape(null==(n=t)?"":n)+h.Library.jade.runtime.escape(null==(n=i?' | "'+i+'"':"")?"":n)+" }}")}.call(this,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},markdown_italic:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_line:function(t){var i=[];return i.push(''),i.join("")},markdown_link_text:function(t){var e,s=[],t=t||{};return function(t,i,n){s.push("'+(null==(e=i)?"":e)+"")}.call(this,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),s.join("")},markdown_link_image:function(t){var c=[],t=t||{};return function(t,i,n,e,s){c.push("");n=t(n);c.push("')}.call(this,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"url_crisp_image"in t?t.url_crisp_image:"undefined"!=typeof url_crisp_image?url_crisp_image:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),c.join("")},markdown_list:function(t){var n,e=[],t=t||{};return function(t,i){e.push("'+(null==(n=i)?"":n)+"")}.call(this,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},markdown_title:function(t){var n,e=[],t=t||{};return function(t,i){e.push("'+(null==(n=i)?"":n)+"")}.call(this,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},markdown_underline:function(t){var i,n=[],t=t||{};return function(t){n.push(''+(null==(i=t)?"":i)+"")}.call(this,"value"in t?t.value:"undefined"!=typeof value?value:void 0),n.join("")},markdown_youtube:function(t){var a=[],t=t||{};return function(t,i,n,e,s){a.push("");var c="https://www.youtube.com/embed/"+t(s)+"?autoplay=1&rel=0",s=t("https://img.youtube.com/vi/"+t(s)+"/hqdefault.jpg");a.push("")}.call(this,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"url_crisp_image"in t?t.url_crisp_image:"undefined"!=typeof url_crisp_image?url_crisp_image:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),a.join("")},markdown_vimeo:function(t){var s,c=[],t=t||{};return function(t,i,n,e){c.push("");e="https://vimeo.com/"+t(e)+"?autoplay=1";c.push("'+(null==(s=n||e)?"":s)+"")}.call(this,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),c.join("")},markdown_dailymotion:function(t){var a=[],t=t||{};return function(t,i,n,e,s){a.push("");var c="https://www.dailymotion.com/embed/video/"+t(s),s=t("https://www.dailymotion.com/thumbnail/video/"+t(s));a.push("")}.call(this,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"url_crisp_image"in t?t.url_crisp_image:"undefined"!=typeof url_crisp_image?url_crisp_image:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),a.join("")},markdown_frame:function(t){var e,s=[],t=t||{};return function(t,i,n){s.push("'+(null==(e=i||n)?"":e)+"")}.call(this,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),s.join("")},smiley:function(t){var n=[],t=t||{};return function(t,i){n.push("')}.call(this,"name"in t?t.name:"undefined"!=typeof name?name:void 0,"size"in t?t.size:"undefined"!=typeof size?size:void 0),n.join("")},magnify:function(t){var i=[];return i.push('
'),i.join("")},date_now:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t("date","now"))?"":i)+"")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},date_seconds:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t("date","second"))?"":i)+"")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},date_minutes:function(t){var n,e=[],t=t||{};return function(t,i){e.push(''),1===i?e.push(h.Library.jade.runtime.escape(null==(n=t("date","minute_singular"))?"":n)):e.push(h.Library.jade.runtime.escape(null==(n=t("date","minute_plural",[i]))?"":n)),e.push("")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"minutes"in t?t.minutes:"undefined"!=typeof minutes?minutes:void 0),e.join("")},date_hours:function(t){var n,e=[],t=t||{};return function(t,i){e.push(''),1===i?e.push(h.Library.jade.runtime.escape(null==(n=t("date","hour_singular"))?"":n)):e.push(h.Library.jade.runtime.escape(null==(n=t("date","hour_plural",[i]))?"":n)),e.push("")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"hours"in t?t.hours:"undefined"!=typeof hours?hours:void 0),e.join("")},date_far_away:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t)?"":i)+"")}.call(this,"date_full"in t?t.date_full:"undefined"!=typeof date_full?date_full:void 0),n.join("")},duration_now:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t("duration","now"))?"":i)+"")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},duration_seconds:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t("duration","second"))?"":i)+"")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},duration_minutes:function(t){var n,e=[],t=t||{};return function(t,i){e.push(''),1===i?e.push(h.Library.jade.runtime.escape(null==(n=t("duration","minute_singular"))?"":n)):e.push(h.Library.jade.runtime.escape(null==(n=t("duration","minute_plural",[i]))?"":n)),e.push("")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"minutes"in t?t.minutes:"undefined"!=typeof minutes?minutes:void 0),e.join("")},duration_hours:function(t){var n,e=[],t=t||{};return function(t,i){e.push(''),1===i?e.push(h.Library.jade.runtime.escape(null==(n=t("duration","hour_singular"))?"":n)):e.push(h.Library.jade.runtime.escape(null==(n=t("duration","hour_plural",[i]))?"":n)),e.push("")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"hours"in t?t.hours:"undefined"!=typeof hours?hours:void 0),e.join("")},duration_days:function(t){var i,n=[],t=t||{};return function(t){n.push(''+h.Library.jade.runtime.escape(null==(i=t("duration","days"))?"":i)+"")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},chat:function(t){var a,r=[],o={},t=t||{};return function(e,s,t,i){r.push(""),r.push(""),o["text-space"]=a=function(){this&&this.block,this&&this.attributes,r.push(" ")},r.push('
'),function(){var t=["chat","helpdesk"];if("number"==typeof t.length)for(var i=0,n=t.length;i'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_mode_"+e))?"":a)+"")}else for(i in n=0,t)n++,r.push("'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_mode_"+e))?"":a)+"")}.call(this),r.push('
{{ (active_avatar.type === \'website\' && $store.base.other_operators_count > 0 && $store.chat.show_operator_count === true) ? $render._e("chat", "chat_header_initial_avatar_website_tooltip", [$store.base.other_operators_count]) : active_avatar.name }}{{ $store.chat.ongoing_operator.name }}'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_ongoing_from"))?"":a)+' {{ $store.base.configuration.website.name }}'+h.Library.jade.runtime.escape(null==(a=s("theme_text",["default_chat",t.chat.theme_text+"_chat"]))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_ongoing_status_online"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_ongoing_status_away"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_channels"))?"":a)+'{{ $render._e("chat", "chat_header_ongoing_channel_continue", [channel.format]) }}
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_helpdesk_results"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_header_helpdesk_curated"))?"":a)+'
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_offline_main"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_offline_fail"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_offline_inactive"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_offline_label_resume"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_offline_label_frozen"))?"":a)+'
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_health_main"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_health_label_link"))?"":a)+""),o["text-space"](),r.push(h.Library.jade.runtime.escape(null==(a=s("chat","chat_health_label_updates"))?"":a)+'
{{ $store.chat.timestamp_to_properties(message.timestamp).title }}
{{ ((message.user.type === \'website\') ? message.user.nickname : $render._n(message.user.nickname)) }}'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_tag_automated"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_source_badge"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_source_label"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_source_sources"))?"":a)+'{{ reference.name }}{{ reference.name }} ¡ {{ reference.target }}{{ message.content.name }}'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_file_name"))?"":a)+'1x{{ $render.format_time(message.content.duration) }}('+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_tag_participant"))?"":a)+','),o["text-space"](),r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_tag_edited"))?"":a)+','),o["text-space"](),r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_tag_translated"))?"":a)+'){{ (message.content.value || message.content.explain) }}
{{ choice.label }}{{ target.title }}{{ target.description }}{{ action.label }}
{{ (link_preview.title || link_preview.website || link_preview.url) }}
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_info_read"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_error_retry"))?"":a)+'
'),function(){var t=e(3);if("number"==typeof t.length)for(var i=0,n=t.length;i');else for(i in n=0,t)n++,t[i],r.push('')}.call(this),r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_message_event_thinking"))?"":a)+'
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_attach_tooltip"))?"":a)+'
');var n=s("chat","chat_feedback_rate_placeholder");r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_feedback_rate_title"))?"":a)+''),function(){var t=e(5);if("number"==typeof t.length)for(var i=0,n=t.length;i');else for(i in n=0,t)n++,t[i],r.push("')}.call(this),r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_feedback_rate_submit"))?"":a)+'
');var c=s("chat","chat_pickers_gif_search");r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_pickers_gif_no_results"))?"":a)+"
');c=s("chat","chat_form_field_message"),n=s("chat","chat_form_field_disabled");r.push('
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_smiley_tooltip"))?"":a)+''),!0===t.chat.file_transfer&&r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_attach_tooltip"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_attach_wait_preparing"))?"":a)+''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_attach_wait_uploading"))?"":a)+'{{ $render.format_time($store.chat.speech.duration) }}'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_speech_tooltip"))?"":a)+''),r.push(''+h.Library.jade.runtime.escape(null==(a=s("chat","chat_form_feedback_tooltip"))?"":a)+'
{{ $store.chat.helpdesk_viewer.category }}/{{ $store.chat.helpdesk_viewer.title }}'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_helpdesk_viewer_open_tooltip"))?"":a)+'
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_helpdesk_search_empty"))?"":a)+'
'+h.Library.jade.runtime.escape(null==(a=s("chat","chat_helpdesk_search_unpopulated"))?"":a)+'
'+h.Library.jade.runtime.escape(null==(a=s("chat","minimized_tooltip_message_from"))?"":a)+'{{ (message.user.type === \'website\') ? message.user.nickname : $render._n(message.user.nickname) }}đŸ“Ļ {{ message.content.name }}🎧'+h.Library.jade.runtime.escape(null==(a=s("chat","minimized_tooltip_message_compose"))?"":a)+'{{ $store.minimized.pane.unread.count }}
')}.call(this,"Array"in t?t.Array:"undefined"!=typeof Array?Array:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"configuration"in t?t.configuration:"undefined"!=typeof configuration?configuration:void 0,"undefined"in t?t.undefined:void 0),r.join("")},minimized_authorized:function(t){var i,n=[],t=t||{};return function(t){n.push(""),n.push('")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},minimized_unauthorized:function(t){var i,n=[],t=t||{};return function(t){n.push(""),n.push('")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},chat_frame:function(t){var i=[];return i.push('
{{ $store.chat.frame.title }}
'),i.join("")},chat_game:function(t){var i,n=[],t=t||{};return function(t){n.push('')}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},browsing_assist:function(t){var i=[];return i.push('
{{ $render._e("browsing", "assist_mouse_tooltip", [$store.base.configuration.website.name]) }}
'),i.join("")},call_ring:function(t){var i,n=[],t=t||{};return function(t){n.push('
{{ $render._e("call", "ring_title_label", [$store.call.user.nickname]) }}
{{ $render._e("call", "ring_title_website", [$store.base.configuration.website.name]) }}
  • '+h.Library.jade.runtime.escape(null==(i=t("call","ring_actions_decline"))?"":i)+'
  • '+h.Library.jade.runtime.escape(null==(i=t("call","ring_actions_accept"))?"":i)+"
")}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0),n.join("")},call_screen:function(t){var a,r=[],t=t||{};return function(s,t){r.push('
  • '+h.Library.jade.runtime.escape(null==(a=s("call","screen_label_audio_muted"))?"":a)+'
  • '+h.Library.jade.runtime.escape(null==(a=s("call","screen_label_video_muted"))?"":a)+'
{{ $store.call.user.nickname }}');var c=["connecting","ongoing"];(function(){var t=c;if("number"==typeof t.length)for(var i=0,n=t.length;i'+h.Library.jade.runtime.escape(null==(a=s("call","screen_status_"+e))?"":a)+"")}else for(i in n=0,t)n++,r.push("'+h.Library.jade.runtime.escape(null==(a=s("call","screen_status_"+e))?"":a)+"")}).call(this),r.push('{{ $render.format_time($store.call.duration) }}
')}.call(this,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"undefined"in t?t.undefined:void 0),r.join("")}};this.logger=r.Console,this.vue=r.PetiteVue,this.crisp={web:r.CrispLibraryWeb,client:r.CrispLibraryClient},this.jade={runtime:r.jade,client:g}}catch(t){}};_.Library=t;var i=new(function(){function t(){try{this.ns="CrispCompatibility",this.Gs=2e4,this.Ys="UTF-8",this.Zs='You can disable this warning by adding: $crisp.push(["safe", true]) to your page JavaScript.',this.Xs=/\{\s*\[native code\]\s*\}$/,this.ht(),this.Qs()}catch(t){}}var i=t.prototype;return i.reset=function(){try{this.ht()}catch(t){}},i.schedule_warn_incompatible=function(){var t=this,i=0this.ya||-1!==n.indexOf(c)){i=!1;break}n.push(c)}}catch(t){i=!1}finally{return i}},t}());_.Validate=o;var h=new(function(){function t(){try{this.ns="CrispDate",this.ka=20,this.$a=1e3,this.xa=60,this.Fa=24,this.ja=60,this.Ea=this.xa*this.ja,this.za=this.Fa*this.Ea,this.Ca=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],this.Aa=["january","february","march","april","may","june","july","august","september","october","november","december"]}catch(t){}}var i=t.prototype;return i.directive=function(i){var t,n=this;try{var e=i.get()||{},s=e.date,c=e.format||"",a=e.type||"date",r=null,o=function(){_.Utility.clear_timeout(r),r=null},h=function(){o(),r=_.Utility.set_timeout(function(){l()},n.ka*n.$a)},l=function(){var t="";switch(a){case"date":t=n.format_date(n.timestamp_to_iso(s));break;case"duration":t=n.format_duration(s)}c&&(t=_.Library.crisp.web.Parse.replace(c,[_.Utility.lower_string_first(t)])),i.el.innerText=t,h()};i.effect(function(){var t=i.get()||{};s=t.date,c=t.format||"",l()}),t=function(){o()}}catch(t){}finally{return t||function(){}}},i.timestamp_to_iso=function(t){var i="";try{i=new Date(t).toISOString()}catch(t){}finally{return i}},i.iso_to_timestamp=function(t){var i=0;try{i=new Date(t).getTime()}catch(t){}finally{return i}},i.timestamp_to_properties=function(t){var i,n,e,s={day:"none",month:"none",year:"none",title:null};try{0n.dr&&(a=n.fr),u.playbackRate=a,h.innerText=a%1==0?"x".concat(Math.floor(a)):"".concat(a)}catch(t){}finally{return!1}}))}catch(t){}finally{return function(){}}},i.pr=function(t,i,n,e){var s=!(4t.length)&&(i=t.length);for(var n=0,e=new Array(i);n=this.Qo)&&(e+=1,n=s,_.Library.crisp.client.Storage.set_stamp_local(this.th,i,"".concat(e))),_.Library.crisp.client.Storage.set_stamp_local(this.th,t,"".concat(s))}catch(t){}},i.Ch=function(t){var i=[];try{i=[_.Base.kh,"visit",t]}catch(t){}finally{return i}},i.ht=function(){try{this.bh=[],this.gh=null,this.Eh=!1,this.Sh=!1,this.Rh=null,this.Dh=10,this.wh={}}catch(t){}},t}());_.Trigger=k;var $=new(function(){function t(){try{this.ns="CrispBase",this.Nh=600,this.Mh=480,this.Th=720,this.Uh=540,this.Ph=840,this.Lh=640,this.Jh=6e5,this.Vh=6e5,this.Wh=1728e5,this.Hh=1e3,this.Kh=1e4,this.Gh=3,this.Yh=/_/g,this.Zh={socket:!0,buster:1},this.Xh={other:{container_index:1e6}},this.Qh={childList:!0,attributes:!1,subtree:!1,characterData:!1},this.tl=/^(?:https?:[\/]*)?([^\/]+)(?:\/.*)?$/i,this.il(),this.ht()}catch(t){}}var i=t.prototype;return i.init=function(){var i=this,t=0=this.Ph&&window.innerWidth>=this.Lh&&(t=!0)}catch(t){}finally{return t}},i.is_invisible=function(){var t=!1;try{!0===this._l.lock_maximized||!0===_.Chat.Message.Ah&&!0!==this.is_activity_outdated()||(!0===this.is_blocked()&&(t=!0),!0===this._c.chat.hide_vacation&&(t=!0),!0===this._c.chat.hide_on_away&&!0!==_.Store.$store.base.was_availability_online&&!0!==_.Availability.Qc&&(t=!0),!0===this._c.chat.hide_on_mobile&&!0===this.is_mobile_view()&&(t=!0))}catch(t){}finally{return t}},i.is_blocked=function(){var t=!1;try{t=(!0===this.Il||!0===this.ql)&&!0}catch(t){}finally{return t}},i.is_activity_outdated=function(){var t=!1;try{0<_.Chat.Message.Ol&&_.Date.timestamp()-_.Chat.Message.Ol>=this.Jh&&(t=!0)}catch(t){}finally{return t}},i.process_blocked_states=function(){var t=!1;try{var i=_.Locale.code();this.Il=!(!(0=s.Kh&&(s.Dl=e,_.Library.crisp.client.Issue.report(t,i,n)))}))}catch(t){}},i.uninsert_client=function(){try{"MutationObserver"in window&&(this.Rl("html"),this.Rl("body")),_.Library.crisp.client.socket.disconnect(),this.El()}catch(t){}},i.re_trigger_loader=function(){try{"function"==typeof this.gl&&this.gl()}catch(t){}},i.wl=function(n,e){var s=this;try{var t=new Date,i="".concat(t.getFullYear(),"-").concat(t.getMonth(),"-").concat(t.getDate(),"-")+"".concat(t.getHours(),"-").concat(t.getMinutes());this.load_dependency("website",["".concat(this.Xa,"/settings/website/"),"".concat(encodeURIComponent(this.kh),"/prelude/")].join(""),function(t){var i=null!=t&&t.error?t.error:null;i?e(i):n(t||s.Zh)},!0,i)}catch(t){}},i.Al=function(){try{this.Bl(),"MutationObserver"in window&&(this.Nl(document.documentElement),this.Ml(document.body))}catch(t){}},i.Bl=function(){try{var t=document.querySelector("body");t&&t.appendChild(this.zl),_.Template.vue(this.zl)}catch(t){}},i.El=function(){try{null!==this.zl&&(this.zl.remove(),this.zl=null)}catch(t){}},i.Fl=function(){try{this.Tl(!0)}catch(t){}},i.jl=function(){var e=this;try{this.Tl(!1),this.load_website_settings({},function(t,i,n){!0!==n&&_.Availability.receive(i.online||!1,!1),e.spawn_client(t),_.Minimized.init(!1,!1,n),_.Utility.next_render(function(){e.trigger_session_loaded()})},this.kl)}catch(t){}},i.Tl=function(){var t=0e&&(i=n.website.count_operators-e),_.Store.$store.base.other_operators_count=i}catch(t){}},i.ht=function(){try{this.Hc=!1,this._c={},this.Wc=null,this.nl=null,this.sl=null,this.cl=null,this.al=null,this.rl=null,this.mc=null,this.ol=null,this.Xa=null,this.qo=null,this.hl=null,this.ll=null,this.Qa=null,this.gc=null,this.kh=null,this.ul=null,this.fl=null,this.dl=null,this.Do=null,this.Ro=null,this.vl=null,this.pl=null,this.yl=null,this.or=null,this.kl=1,this.bl=!0,this.$l={},this.Il=!1,this.ql=!1,this.ml=null,this.gl=null,this._l={},this.Dl=0,this.Ll=null,this.Sl={color:{},other:{}},this.Ul={}}catch(t){}},t}());_.Base=$;var x=new(function(){function t(){try{this.ns="CrispMinimized",this.Event=void 0,this.Interface=void 0,this.ht()}catch(t){}}var i=t.prototype;return i.init=function(){var t=!(0=n)return alert(_.Locale.text("chat","chat_form_attach_alert_size")),void this.Wu();this.Hu=i,this.Ku(t,this.Vu[0])}}catch(t){}},i.set_drop_zone=function(t){try{!0===_.Base._c.chat.file_transfer&&(_.Store.$store.chat.has_drop_zone=t)}catch(t){}},i.handle_file_change=function(){var t=0=i.ef&&_.Library.crisp.client.Helpdesk.get_article_suggest(t,_.Locale.code())},this.nf))}catch(t){}},i.handle_articles=function(){var n=this,e=0=_.Store.$store.chat.helpdesk_search.articles.length?0:i)<0&&(i=_.Store.$store.chat.helpdesk_search.articles.length-1),_.Store.$store.chat.helpdesk_search.current_index=i,_.Utility.next_render(function(){var t=_.Chat.Selector.get("content").querySelector("".concat(".cc-1i08",'[data-active="true"]'));t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})})}catch(t){}},i.cf=function(){try{null!==this.af&&(_.Utility.clear_timeout(this.af),this.af=null),null!==this.rf&&(_.Utility.clear_timeout(this.rf),this.rf=null)}catch(t){}},i.ht=function(){try{this.rf=null,this.sf=""}catch(t){}},t}());_.Chat.Helpdesk=B;var N=new(function(){function t(){try{this.ns="CrispChatInterface",this.hf=320,this.lf=340,this.uf=360,this.ff=460,this.df=400,this.vf=580,this.pf=440,this.yf=500,this.mf=600,this.gf=22,this.wf=8,this.bf=350,this.kf=1e3,this.$f=1e3,this.xf=216e5,this.Ff=1e3,this.jf=10,this.Ef=!1,this.zf=[["email","Email"],["phone","Phone"],["messenger","Messenger"],["telegram","Telegram"],["twitter","X (Twitter)"],["whatsapp","WhatsApp"],["instagram","Instagram"]],this.Cf=/^(?:https?:)?(?:\/\/)?([^\/\?]+)/,this.ht()}catch(t){}}var i=t.prototype;return i.init=function(){try{this.Af()}catch(t){}},i.reset=function(){try{this.ht()}catch(t){}},i.toggle_visibility=function(){var t,i,n,e=this,s=0")):e&&(i="mailto:".concat(e));break;case"phone":e&&(i="tel:".concat(e));break;case"messenger":e&&(i="https://m.me/".concat(encodeURI(e)));break;case"telegram":e&&(i="https://telegram.me/".concat(encodeURI(e)));break;case"twitter":e&&(i="https://x.com/".concat(encodeURI(e)));break;case"whatsapp":e&&(i="https://wa.me/".concat(encodeURI(e)));break;case"instagram":e&&(i="https://www.instagram.com/".concat(encodeURI(e),"/"));break;case"helpdesk":case"status":e&&(n="production"===_.Base.ll?"https":"http",i="".concat(n,"://").concat(e,"/"))}}catch(t){}finally{return i}},i.request_dynamic_sizing_properties=function(){var t=this,i=0=this.jf||null!==this.Tf)&&(_.Chat.Scroll.Mf=t,this.Uf(_.Chat.Scroll.Mf))}catch(t){}},i.qc=function(){var i=this,t=(_.Base._c||{}).website||{},n=_.Base._c.chat.helpdesk_link&&_.Base._c.channels.helpdesk&&_.Base.Ro!==_.Base._c.channels.helpdesk&&!0,t={blocked:_.Base.is_blocked(),helpdesk:{search:n,only:n&&_.Base._c.chat.helpdesk_only&&!0},status:{url:this.generate_channel_link("status")},activity:{metrics:null!==(n=t.response_metrics)&&void 0!==n&&n.mean&&t.response_metrics.mean>=this.$f&&t.response_metrics.meane.jf&&document.activeElement.blur())},{passive:!1,capture:!0})):this.refresh_resize_page_scroll(!0)}catch(t){}},i.Af=function(){var t=this;try{this.Nf=(!window.hasFocus||window.hasFocus())&&!0,_.Utility.add_event_listener(this.ns,"window","focus",function(){t.Nf=!0,t.apply_chat_focus()},{capture:!1}),_.Utility.add_event_listener(this.ns,"window","blur",function(){t.Nf=!1,t.apply_chat_focus()},{capture:!1})}catch(t){}},i.Df=function(){try{this.qf=!1,_.Store.$store.chat.is_opened=!1}catch(t){}},i.ht=function(){try{this.qf=!0,this.Ru=0,this.Su=0,this.qu=0,this.Du=0,this.Wf=40,this.Sf=null,this.Of=null,this.Jf=0,this.Lf=0,this.Bf=-1,this.Tf=null,this.Nf=!0}catch(t){}},t}());_.Chat.Interface=N;var M=new(function(){function t(){try{this.ns="CrispChatMessage",this.Hf=1500,this.Kf=3e4,this.Gf=6e4,this.Yf=3e4,this.Zf=400,this.Xf=5e3,this.Qf=12e4,this.td="urn:crisp.im:triggers:0",this.nd=["welcome","identity","game","feedback"],this.ed=["email","phone"],this.sd=["📨","☎ī¸"],this.cd=["field","picker"],this.ht()}catch(t){}}var i=t.prototype;return i.init=function(){try{this.ad()}catch(t){}},i.reset=function(){try{this.ht()}catch(t){}},i.send=function(){var t;try{!0!==this.check_intent_send()||(t=(t=_.Action.get_message_text()).trim())&&(_.Action.do_message_send("text",t),_.Action.set_message_text(""),_.Chat.Selector.get("form_textarea_message").dispatchEvent(new window.KeyboardEvent("keyup")))}catch(t){}},i.received=function(t){var i=!(1=this.Qf?this.hide_compose():_.Utility.set_timeout(function(){t._d()},this.Xf))}catch(t){}},i.rd=function(t){var i=!0;try{var n=_.Utility.clone(t);if(1==(i=!_.Store.$store.messages.fingerprints[n.fingerprint]))void 0===n.read&&(n.read=!1),void 0===n.metas&&(n.metas={is_new:!1,has_error:!1},"field"!==n.type&&"picker"!==n.type||(n.metas.field={value:""})),_.Store.$store.messages.fingerprints[n.fingerprint]=!0,_.Store.$store.messages.list.push(n);else for(var e=0;e<_.Store.$store.messages.list.length;e++)if(_.Store.$store.messages.list[e].fingerprint===n.fingerprint){_.Utility.merge(_.Store.$store.messages.list[e],n);break}this.xd(n.type,n.content,n.fingerprint,n.from,n.user||{},n.timestamp)}catch(t){}finally{return i}},i.yd=function(t){var i=!1;try{if(!0===_.Store.$store.messages.fingerprints[t]){delete _.Store.$store.messages.fingerprints[t];var n,e={messages:_.Store.$store.messages.list,preview:_.Store.$store.messages.preview};for(n in e){var s=e[n];if(0this.hd&&this.hide_compose(),0=i-_.Chat.Interface.Wf&&_.Chat.Alert.update("new_messages","hide")}catch(t){}},i.Od=function(t,i,n,e){var s=[];try{for(var c=null,a=[],r=n.length-1;0<=r&&!(-1!==i.indexOf(n[r].fingerprint)&&(s.unshift(n[r]),s.length>=this.Id));r--);_.Store.$store.messages.preview=[];for(var o=0;o=i-this.Vf)&&(s=!0,this.to()),!1===s&&"from"===e&&_.Chat.Alert.update("new_messages","show"))}catch(t){}finally{return s}},i.unwind_wheel=function(t,i){var n=2=t?i.Kd.pause():(i.cv++,i.av=Math.floor(100*Math.min(i.cv/t,1)),_.Store.$store.chat.speech.duration=i.cv,_.Store.$store.chat.speech.progress=i.av)},this.$a))}catch(t){}},i.rv=function(){try{null!==this.lv&&(_.Utility.clear_interval(this.lv),this.lv=null)}catch(t){}},i.ht=function(){try{this.Kd=null,this.ov=[],this.cv=0,this.av=0,this.Gd=null,this.Yd=null,this.ev=!1,this.sv=!1,this.lv=null}catch(t){}},t}());_.Chat.Speech=J;var V=new(function(){function t(){try{this.ns="CrispChatState",this.uv=250,this.fv=240,this.dv=[["show","unlock"],["unlock","show"],["hide","lock"],["lock","hide"],["lock","show"]],this.vv={trigger:this.pv,alert:this.yv,intent:this.mv,operator:this.gv,scroll:this._v,maximized:this.wv,textarea:this.bv},this.kv(),this.ht()}catch(t){}}var i=t.prototype;return i.init=function(){},i.reset=function(t){var i=this;try{this.ht(),t.push(function(){i.kv()})}catch(t){}},i.receive=function(t){var i=1=i.Kv&&(_.Utility.clear_interval(i.Xv),(i.Xv=null)!==i.Qv&&_.Utility.clear_timeout(i.Qv),i.Qv=_.Utility.set_timeout(function(){i.Qv=null,_.Library.crisp.client.Browsing.toggle_ignore_scroll_event(!1)},i.Hv))},a))}}catch(t){}},i.pipe_click=function(t){var i,n,e,s,c=this;try{_.Browsing.Jv===this.Vv&&(null!==this.Zv&&(this.Zv.setAttribute("data-is-clicking","true"),null!==this.tp&&_.Utility.clear_timeout(this.tp),this.tp=_.Utility.set_timeout(function(){c.tp=null,c.Zv.removeAttribute("data-is-clicking")},this.Yv)),t.click&&(i=t.click.x-this.Gv,n=t.click.y,i<0&&(i=0),e=document.elementFromPoint(i,n),(s=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,null,t.click.x,t.click.y,0,0,!1,!1,!1,!1,0,null),s.ss=!0,e&&e.dispatchEvent(s)))}catch(t){}},i.il=function(){try{this.Zv=null}catch(t){}},i.ht=function(){try{this.Xv=null,this.Qv=null,this.tp=null}catch(t){}},t}());_.Browsing.Assist=Y;var Z=new(function(){function t(){try{this.ns="CrispCall",this.Event=null,this.ip=6,this.$a=1e3,this.ht()}catch(t){}}var i=t.prototype;return i.reset=function(){try{this.ht()}catch(t){}},i.ring=function(t){try{this.np(),_.Sound.initialize("call"),_.Utility.merge(_.Store.$store.call,{mode:t.mode,size:"maximized",state:null,duration:0,user:{user_id:t.user.user_id||_.Base.kh,nickname:_.Library.crisp.web.Name.parse_first_name(t.user.nickname)||_.Base._c.website.name,type:t.user.user_id?"operator":"website"},actions:this.ep(t.mode),muted:{audio:!1,video:!1}}),this.sp=_.Template.dom(_.Template.render("call_ring")),_.Call.Event.bind(),_.Template.vue(this.sp),_.Base.Yc.appendChild(this.sp),_.Sound.start("call","call-ring",!0)}catch(t){}},i.screen=function(){try{this.np(),this.sp=_.Template.dom(_.Template.render("call_screen")),_.Call.Event.bind(),_.Template.vue(this.sp),this.cp(),this.ap("connecting"),_.Base.Yc.appendChild(this.sp)}catch(t){}},i.stop=function(){try{this.np(),_.Sound.start("call","call-hangup")}catch(t){}},i.success=function(t){try{switch(t){case"media_remote":this.rp();break;case"media_local":this.op()}}catch(t){}},i.error=function(){try{this.np(),_.Sound.start("call","call-hangup")}catch(t){}},i.toggle_media_status=function(t){var i=1